//导入http文件中的request
import request from "./http"
//获取首页tab选项
export function getCateHot(params=''){
    return request({
        url:"home/cateHot",
        method: "get",
        params
    })
}
///articles
export function getCateArticle(params:any){
    return request({
        url:"articles",
        method: "get",
        params
    })
}
///home/cateSelection
export function getCateEdit(params:any){
    return request({
        url:"home/cateSelection",
        method: "get",
        params
    })
}
//https://apis.netstart.cn/xpc/home/cateRecommend?cateName=%E5%89%A7%E6%83%85%E7%9F%AD%E7%89%87&channel=home_channel_plot
export function getHotPicker(params:any){
    return request({
        url:"home/cateRecommend?cateName=%E5%89%A7%E6%83%85%E7%9F%AD%E7%89%87&channel=home_channel_plot",
        method: "get",
        params
    })
}
